//
//  HMPresentationController.m
//  05-自定义UIPresentationController
//
//  Created by 冯华强 on 15/10/19.
//  Copyright (c) 2015年 HQ. All rights reserved.
//

#import "HMPresentationController.h"
#import "HMAnimatedTransitioning.h"

@implementation HMPresentationController

- (void)presentationTransitionWillBegin
{
    //要把presentedView添加到containerView上面
    self.presentedView.bounds = CGRectMake(0, 0, self.presentedViewSize.width, self.presentedViewSize.height);
    self.presentedView.layer.cornerRadius = 16;
    self.presentedView.layer.masksToBounds = YES;
    [self.containerView addSubview:self.presentedView];
}

@end
